#-------------------------------------------------
#
# Project created by QtCreator 2013-08-04T13:47:10
#
#-------------------------------------------------

QT       -= gui
QT       += serialport

TEMPLATE = lib
CONFIG   += c++11
DESTDIR  = ../sleeper/lib

UI_DIR  = build
RCC_DIR = build

CONFIG(debug, debug|release) {
    TARGET = gsmd

    OBJECTS_DIR = build/debug
    MOC_DIR     = build/debug

}
else {
    TARGET = gsm

    OBJECTS_DIR = build/release
    MOC_DIR     = build/release
}

DEFINES += GSM_LIBRARY

INCLUDEPATH += src

SOURCES += \
    src/gsmmodem.cpp \
    src/gsmutil.cpp \
    src/gsmsmsreader.cpp \
    src/qcbsmessage.cpp \
    src/qsmsmsmessage.cpp \
    src/gsmsmssender.cpp

HEADERS +=src/gsm.hpp\
           src/gsm_global.hpp \
    src/gsmmodem.hpp \
    src/gsmsmsreader.hpp \
    src/qcbsmessage.hpp \
    src/qsmsmessage.hpp \
    src/qsmsmessage_p.h \
    src/gsmsmssender.hpp \
    src/qtelephonynamespace.h

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/lib
    } else {
        target.path = /usr/lib
    }
    INSTALLS += target
}

INCLUDEPATH += ../gsmcomm/src
LIBS        += -L../sleeper/lib
CONFIG(debug, debug|release) {
LIBS += -lgsmcommd
}
else {
LIBS += -lgsmcomm
}

